/*
 * Class Accumulator.java
 * 18.06.2012
 * 
 * Class accumulates the data received from the controller
 */

package humanMirror.model.accumulator;

import humanMirror.model.human.Human;
import humanMirror.model.human.OrganInfo;

/**
 * Class accumulates all data received from the controller
 * and affects the pokemon
 * 
 * @author Dima Glushko
 * @author Sergey Lopachuk
 * @version 1.03
 */


public class Accumulator {
	private OrganInfo sumArray;
	
	/**
	 * Accumulator class constructor
	 */
	public Accumulator()
	{
		sumArray = new OrganInfo();
	}
	
	/**
	 * Accumulate the data in sumArray
	 * @param newInfo New data from package controller
	 */
	public void addInfo(OrganInfo newInfo)
	{
		sumArray.addParameters(newInfo);
	}
	
	/**
	 * Affects the pokemon
	 * @param newPokemon Exemplar of class Human from package controller
	 */
	public void pokemonInfluence(Human newPokemon)
	{
		newPokemon.setOrgansParameters(sumArray);
		
	}
}